package com.hope.minio.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.util.UUID;

@Data
public class FileChunk {
    @TableId(type = IdType.ASSIGN_UUID)
    private String uuid;
    private String md5;
    private String uploadId;
    // not uploaded: 0, uploaded: 1
    private Integer isUploaded;
    private Long totalChunks;
    private Long size;
    private String fileName;

    private Long chunkNumber;

    private String completedParts; // chunkNumber+etag eg: ,1-asqwewqe21312312.2-123hjkas

}
